package exercise.coroutine.easy.q1;

/**
 * 用户接口
 */
public class UserService {

    public static User getUserById(Long id) throws InterruptedException {
        throw new RuntimeException(Thread.currentThread() + "就是抛异常了" +  + System.currentTimeMillis());
//        User user = new User();
//        user.setId(1L);
//        user.setName("张三");
//        TimeUnit.SECONDS.sleep(2);
//        System.out.println("查询用户接口执行完毕");
//        return user;
    }
}
